body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

#toolbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 16px;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-group > .btn {
  border-radius: 6px !important;
  margin: 0 !important;
}

.btn.btn-xs,
label.btn.btn-xs {
  font-size: 12px;
  padding: 0 8px;
  height: 24px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
  border-radius: 6px;
  box-shadow: none;
}

#zoom-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 24px;
  padding: 0 10px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  font-size: 13px;
  border-radius: 6px;
  text-align: center;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.icon-eye::before {
  content: "\1F441";
  margin-right: 4px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

#pdf-scroll-container {
  width: 100vw;
  height: calc(100vh - 60px);
  overflow: auto;
  padding: 20px;
  margin-top: 60px;
  background-color: #fff;
}

#pdf-container {
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 20px 0;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.annotation {
  position: absolute;
  border: calc(1px * var(--scale)) dashed #007bff;
  padding: calc(4px * var(--scale)) calc(8px * var(--scale));
  background: rgba(255, 255, 255, 0.95);
  cursor: move;
  white-space: pre-wrap;
  font-size: calc(14px * var(--scale));
  z-index: 10;
  border-radius: 6px;
  transition: none !important;
  will-change: auto;
  transform: translateZ(0);
}

.annotation:hover {
  background: #f5faff;
}

.annotation.selected {
  border: calc(2px * var(--scale)) solid #28a745 !important;
  box-shadow: 0 0 0 calc(2px * var(--scale)) rgba(40, 167, 69, 0.3);
  background: #e8ffe8;
}

.annotation-input {
  position: absolute;
  border: calc(1px * var(--scale)) solid #007bff;
  padding: calc(4px * var(--scale)) calc(8px * var(--scale));
  background: #fff;
  z-index: 20;
  white-space: pre-wrap;
  font-size: calc(14px * var(--scale));
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.4;
  min-width: 150px;
  min-height: 60px;
  resize: none;
  overflow: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

button {
  margin: 0;
}
